<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv=content-type content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="images/admincp/adminmvm.css">
<SCRIPT>
var menus = new Array(<?php echo  $top_arr?>);
function togglemenu(id) {
	if(parent.menu) {
		for(k in menus) {
			if(parent.menu.document.getElementById(menus[k])) {
				parent.menu.document.getElementById(menus[k]).style.display = menus[k] == id ? '' : 'none';
			}
		}
	}
}

function sethighlight(n) {
	var lis = document.getElementsByTagName('li');
	for(var i = 0; i < lis.length; i++) {
		lis[i].className = '';
	}
	lis[n].className = 'menu_selected';
}

togglemenu("home");
</SCRIPT>
</head>
<body>
<div id="header">
	<h1></h1>
	<div id="header_control">当日总额: <span><?php echo currency($order_amount)?></span> | 当日结算额: <span><?php echo currency($pay_amount)?></span>  | 当日订单: <span><?php echo $order_nums?></span> 张定单 | 当日结单: <span><?php echo $pay_nums?></span> 张定单 &nbsp; <a href="logging.php?action=logout" target="_parent" >[退出]</a> | <a href="." target="_blank">[打开主页]</a> | <a href="admincp.php?module=cache&action=edit" target="main">[更新缓存]</a></div>     
	<div id="header_menu">
     	<ul>
     		<?php foreach ($rs_cat as $key=>$val){?>
      	 	<li><span><a onclick="sethighlight(<?php echo  $key?>); togglemenu('<?php echo  $val['uid']?>'); return false;" href="#"><?php echo  $val['menu_name']?></a></span> </li>
  			<?php }?>
     	</ul>    
 	</div>
</div>
</body>
</html>